<template>
    <div>
      <a-button type="primary">按钮</a-button>
      <a-date-picker @change="onChange" />
      <image-box :src="require('../assets/logo.png')"/>
<!--      <img src="@/assets/logo.png">-->
    </div>
</template>
<script>
import ImageBox from '../components/ImageBox'

export default {
  name: 'HelloWorld',
  components: {
    ImageBox
  },
  data () {
    // 用require导入
    // this.imgsrc = require('../assets/logo.png')
    return {
      msg: 'Welcome to Your Vue.js App'
    }
  },
  methods: {
    onChange (date, dateString) {
      console.log(date, dateString)
    }
  }
}
</script>
